package com.example.Ordermodule;

import java.util.ArrayList;
import java.util.List;

public abstract class Orderm {
    protected  Integer orderId;
    protected List<OrderItemm> items = new ArrayList();

    public Orderm() {
    }

    public abstract void validate();

    public void addItem(OrderItemm item) {
        this.items.add(item);
    }

    public  Integer getOrderId() {
        return this.orderId;
    }

    public List<OrderItemm> getItems() {
        return this.items;
    }

    public void setOrderId( Integer orderId) {
        this.orderId = orderId;
    }

    public void setItems(List<OrderItemm> items) {
        this.items = items;
    }



}
